<template>
  <div>
      <el-container>
        <el-aside width="200px">
            
            <IndexAside></IndexAside>

        </el-aside>
        <el-container>
            <el-header>
                <IndexHeader>
                  <div slot="top">菜单管理</div>
                </IndexHeader>
            </el-header>
            <el-main>
              <!-- <component :is="comp"></component> -->
              <router-view></router-view>
              <!-- <router-link :to=""></router-link> -->
            </el-main>
        </el-container>
       </el-container>
  </div>
</template>

<script>
import IndexAside from './IndexAside.vue'
import IndexHeader from './IndexHeader.vue'
export default {
  components:{
        IndexAside,IndexHeader
  }
}
</script>

<style scoped>
  .el-header {
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
  }
  
  .el-main {
    background-color: #f6f6f6;
    color: #333;
    text-align: center;
    height: calc(100vh - 60px);
  }

</style>